package com.midnight.rstar.domain;

import java.io.Serializable;
import java.util.Date;

public class Nlog implements Serializable {
    private Integer id;

    private String content;

    private String ntype;

    private Date createtime;

    private static final long serialVersionUID = 1L;

    public Nlog(Integer id, String content, String ntype, Date createtime) {
        this.id = id;
        this.content = content;
        this.ntype = ntype;
        this.createtime = createtime;
    }

    public Nlog() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getNtype() {
        return ntype;
    }

    public void setNtype(String ntype) {
        this.ntype = ntype == null ? null : ntype.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", ntype=").append(ntype);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}